package com.grace.storage.service;

import java.util.List;



import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.grace.storage.domain.SysStorage;
import com.grace.storage.mapper.SysStorageMapper;

@Service
public class StorageService {

    @Autowired
    private SysStorageMapper storageMapper;

    /**
     * 查询文件存储
     * 
     * @param id 文件存储ID
     * @return 文件存储
     */
    public SysStorage selectSysStorageById(Long id) {
        return storageMapper.selectSysStorageById(id);
    }

    /**
     * 查询文件存储列表
     * 
     * @param sysStorage 文件存储
     * @return 文件存储集合
     */
    public List<SysStorage> selectSysStorageList(SysStorage sysStorage) {
        return storageMapper.selectSysStorageList(sysStorage);
    }

}